<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../jsLib/angular.js"></script>

    <title></title>
</head>
<body  ng-app="app" >
<hello ></hello>
<hello ></hello>
<hello ></hello>
<hello ></hello>

<script>
    var app = angular.module('app',[]);
    app.directive('hello',function(){
        return{
            restrict:"AE",
            scope:{},//独立scope
            template:'<div><input ng-model="aa">{{aa}}</div>',
            replace:"true"

        }
    })
</script>
</body>
</html>